import { success } from '../common/ResResult'
import { Context } from 'koa'
import { get, post } from '../decorator/reqmethoddecorator'
import EvaluateDao from '../modules/evaluate/dao/EvaluateDao'
import { Controller } from '../decorator/controllerdecorator'

@Controller('/evaluatemodule')
class EvaluateController {
  @get('/findEvalReplyLst/:isbn')
  async findEvalReplyLst(ctx: Context) {
    const { isbn } = ctx.params
    ctx.body = success(await EvaluateDao.findEvalReplyLst(isbn))
  }
}
